home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 4
/
ETO Development Tools 4.iso
/
Tools - Objects
/
E.T.O. #4 Installer
/
411 Install
next >
Wrap
Text File
|
1991-05-23
|
2KB
|
79 lines
# M P W 4 1 1 I N S T A L L A T I O N S C R I P T
#
# Copyright Apple Computer, Inc. 1990, 1991 - All rights reserved.
#
#
# This script is used to install MPW 411 files from the E.T.O. #4 distribution
# compact disk into the "MPW Folder" on the destination hard disk.
#
# Options: None
#
# This script makes use of the following Shell variables:
#
# {CDVolume} - the name of the CD Distribution volume
#
# {DestVolume} - the name of the volume from which the Installer was launched
#
# {MacAppFlag} - flag indicating if MacApp is being installed (for MacApp 411)
#
# {ToDir} - the name of the MPW destination folder
Set Exit 0
Set DestMPW "{ToDir}:"
Set Source411 "{CDVolume}Essentials:MPW 411:"
Set MacApp411 "{CDVolume}Essentials:MacApp Documentation:Class&Method Reference (411):"
# Copy the 411 User Startup script into the user's MPW Shell directory.
# First, disable the old UserStartup script if one exists.
If "`Exists -f "{DestMPW}UserStartup•~_Help_"`"
Rename -y "{DestMPW}UserStartup•~_Help_" "{DestMPW}UserStartup.~_Help_"
End
Duplicate -y "{Source411}Tools:UserStartup•Help" "{DestMPW}"
# Same thing with the get tool
If "`Exists -f "{DestMPW}Tools:Get"`"
Rename -y "{DestMPW}Tools:Get" "{DestMPW}Tools:Get.Old"
End
Duplicate "{Source411}Tools:Get" "{DestMPW}Tools:Get"
# Remove old help system files.
If "`Exists -d "{DestMPW}Help Folder"`"
Delete -y "{DestMPW}Help Folder"
End
NewFolder "{DestMPW}Help Folder"
# If requested, copy the entire 411 folder from the CD to the MPW folder
if "{411Option}" == "2" ### copy all of the help files to the hard drive
Duplicate -y "{Source411}" "{DestMPW}Help Files:"
If "{MacAppFlag}" != "0" ### copy the MacApp help files as well
Duplicate -y "{MacApp411}MacApp411Help" "{DestMPW}Help Files:"
Duplicate -y "{MacApp411}MacApp411Help.index" "{DestMPW}Help Files:"
End
End
# Setup the 411 directory.
Set HelpDirectory "{DestMPW}Help Folder:"
If not "`Exists -d "{HelpDirectory}"`"
NewFolder "{HelpDirectory}"
End
If "{411Option}" == "2"
Echo "{DestMPW}Help Files:" > "{HelpDirectory}Help_Folder"
Else
Echo "{Source411}Help Files" > "{HelpDirectory}Help_Folder"
End